import request from '../utils/request'
const roleApi = {
    role(data) {
        return request('/role', {

        })
    },
    roleMenu(roleID) {
        console.log(roleID);
        return request(`/role/menu/${roleID}`, {

        })
    },
    menu() {
        return request('/menu', {})
    },
    modifRole(data) {
        return request('/role', {
            method: 'PUT',
            body: data
        })
    },
    addrole(body) {
        return request('/role', {
            method: 'POST',
            body
        })
    }
}
export default roleApi